
$(function () {
    // 点击打开订单详情
    $(".shop-main .show-details").on("click", function () {
        $(".shop-main .shop-orders").toggle();
        if ($(".shop-main .shop-orders").css("display") == "block") {
            $(".shop-main .show-details img").attr("src", imgRootDeep+"/static/shop-Details-top.png");
        } else {
            $(".shop-main .show-details img").attr("src", imgRootDeep+"/static/shop-Details.png");
        }
    });
    // 订单详情条目分页
    $(".shop-pagination-element span").on("click", function () {
        var index = $(this).index();
        $(".shop-pagination-element span").each(function () {
            $(this).removeClass("shop-selected");
        });
        $(this).addClass("shop-selected");
        $(".shop-pagination .shop-items").each(function () {
            $(this).removeClass("shop-items-selected");
        });
        $(".shop-pagination .shop-items").eq(index).addClass("shop-items-selected")
    });
})